package com.wing.product.strategy.impl;

import com.wing.product.strategy.OrderTStrategy;
import com.wing.product.strategy.OrderType;

import com.wing.sell.model.response.OrderSkuDetailSearchVo;
import com.wing.sell.service.FinishedOrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description: 成品订单
 * @Project: szgc-enterprise-coding
 * @Package: com.wing.sell.strategy.impl.FinishOrderGenerate
 * @Date: 2024/12/16 10:31
 * @Author: heZhou
 * @Version: 1.0
 */
@Component
@OrderType(type = "finish")
public class FinishOrderImpl implements OrderTStrategy {

    @Autowired
    private FinishedOrderDetailService finishedOrderService;

    @Override
    public boolean isGenerateOrder(String type) {
        return false;
    }

    @Override
    public List<OrderSkuDetailSearchVo> getDetailBy(Long orderId) {
        return finishedOrderService.listByInfoBy(orderId);
    }
}
